$(document).ready(function () {
    $(".i-checks").iCheck({
        checkboxClass: "icheckbox_square-green",
        radioClass: "iradio_square-green",
    });

    $('.chosen-select').chosen();

    // 初始化ios7组件
    // 方式一：原始js初始化
    // var elems = Array.prototype.slice.call(document.querySelectorAll('.js-switch'));
    // elems.forEach(function(html) {
    //   var switchery = new Switchery(html,{ color: "#1AB394" });
    // });
    //方式二：使用jquery遍历初始化
    $(".js-switch").each(function () {
        var switchery = new Switchery($(this).get(0), {color: "#1AB394"});
    });
});

toastr.options = {
    "closeButton": true,
    "debug": false,
    "progressBar": true,
    "positionClass": "toast-top-right",
    "onclick": null,
    "showDuration": "400",
    "hideDuration": "1000",
    "timeOut": "3000",
    "extendedTimeOut": "1000",
    "showEasing": "swing",
    "hideEasing": "linear",
    "showMethod": "fadeIn",
    "hideMethod": "fadeOut"
};
